<div id="nav" th:fragment="header">
<!-- 新 Bootstrap5 核心 CSS 文件 -->
    <link rel="stylesheet" th:href="@{/plugs/bootstrap-5.0.2-dist/css/bootstrap.css}" href="/plugs/bootstrap-5.0.2-dist/css/bootstrap.css">
    <link rel="stylesheet" th:href="@{/css/style.css}" href="/plugs/bootstrap-5.0.2-dist/css/bootstrap.css">
    <nav class="navbar navbar-expand-lg bg-secondary navbar-dark" >
        <div class="container-fluid">
            <a class="navbar-brand" style="color: white" href="#"> <img class="card-img-top"  th:src="@{/images/2016.png}" alt="Card image" style="height:30%;width:30%;">商城</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav me-auto mb-1 mb-lg-0"  >
                    <li class="nav-item">
                        <a class="nav-link active" aria-current="page" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">热销商品</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">新到商品</a>
                    </li>
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                            商品分类
                        </a>
                        <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                            <li><a class="dropdown-item" href="#">Action</a></li>
                            <li><a class="dropdown-item" href="#">Another action</a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li><a class="dropdown-item" href="#">Something else here</a></li>
                        </ul>
                    </li>

                </ul>

                <span class="navbar-text">
                    <a class="btn btn-outline-primary" th:href="@{/toLogin}">登录</a>
                    <a class="btn btn-outline-primary" th:href="@{/toRegist}">注册</a>
                </span>
            </div>
        </div>
    </nav>
    </div>



<div class="bottom" th:fragment="footer" >
    <div class="col-md-12 text-center p-4 mb-2  bg-light text-dark">
        版权&copy;&nbsp;Neusoft.2022
    </div>
    <!-- 最新的 Bootstrap5 核心 JavaScript 文件 -->
    <script type="text/javascript" th:src="@{/plugs/bootstrap-5.0.2-dist/js/bootstrap.js}" src="/plugs/bootstrap-5.0.2-dist/js/bootstrap.js"></script>
</div>